package com.jxc.biz.impl;

import com.jxc.biz.StaffAndModuleBiz;
import com.jxc.dao.impl.StaffAndModuleDaoImpl;
import com.jxc.entity.Staffandmodule;

public class StaffAndModuleBizImpl implements StaffAndModuleBiz {

	private StaffAndModuleDaoImpl dao;
	public StaffAndModuleDaoImpl getDao() {
		return dao;
	}
	public void setDao(StaffAndModuleDaoImpl dao) {
		this.dao = dao;
	}
	public void updateStaffandmodule(Staffandmodule staffandmodule, int type) {
		if(type==1){
			dao.insert(staffandmodule);
			
		}
		else{
			dao.delete(staffandmodule);
		}
	}
}
